//
//  TGBuyDock.m
//  GroupBuy
//
//  Created by wwj on 15/11/12.
//  Copyright © 2015年 wwj. All rights reserved.
//

#import "TGBuyDock.h"
#import "TGLineLabel.h"
#import "TGDealModel.h"

@interface TGBuyDock ()
@property (weak, nonatomic) IBOutlet TGLineLabel *listPrice;
@property (weak, nonatomic) IBOutlet UILabel *currentPrice;
@end
@implementation TGBuyDock

+ (instancetype)buyDock{
    return [[NSBundle mainBundle] loadNibNamed:@"TGBuyDock" owner:nil options:nil].lastObject;;
}

-(void)awakeFromNib{
    self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
}

-(void)setModel:(TGDealModel *)model{
    _model = model;
    _listPrice.text = [NSString stringWithFormat:@" %@元 ", model.list_price_text];
    _currentPrice.text = model.current_price_text;
}

-(void)setFrame:(CGRect)frame{
    frame.size.height = 70;
    [super setFrame:frame];
}
@end
